package pl;

public class PrimitiveBERTag extends BERTag {

	public PrimitiveBERTag() {
		emptyTag = true;
	}

	public void init(byte[] bArray, short bOff) 
	{
		// TODO: implementation
	}

	public void init(byte tagClass, short tagNumber)
	{
		if (tagNumber < 31 ) tagSizeInBytes = 0x01;
		if (tagNumber > 30 && tagNumber < 128) tagSizeInBytes = 0x02;
		else if (tagNumber > 127 && tagNumber < 1024) tagSizeInBytes = 0x03;
		
		this.tagClass = tagClass;
		this.emptyTag = false;
		this.tagNumber = tagNumber;
	}
}
